<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateHouseNature extends Migrator
{
    public function up(){
        $table = $this->table('house_nature',['comment'=>'房屋性质表']);
        $table->addColumn('name','string',['comment'=>'房屋性质名称'])
            ->addColumn('create_time','integer',['limit'=>10,'default'=>time(),'comment'=>'创建时间'])
            ->create();
    }

    public function down(){
        $this->dropTable('house_nature');
    }
}
